<?php 

	session_start();
	$workshopId = $_POST['delete'];
    $con = mysql_connect("localhost", "group5", "group5");
	
    if(!$con)
    {
        echo "Connection Failed!";
        exit;
    }
	
    mysql_select_db("group5");
	$query1 = "DELETE FROM USER_WORKSHOP WHERE workshopSessionId=$workshopId";
	$query2 = "DELETE FROM WORKSHOP_SESSIONS WHERE workshopSessionId=$workshopId";
	
	mysql_query($query1, $con);
	mysql_query($query2, $con);

	header("Location:adminManage.php");


?>